<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StoreInfoRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
			'work_start_time'	=> 'bail|required',
			'work_end_time'		=> 'bail|required',
			'store_logo'		    => 'bail|required',
			'store_info'		    => 'bail|required',
			'store_mobile'		    => 'bail|required|size:11'
        ];
    }
    
    public function messages()
	{
		return [
			'work_start_time.required'	=> '请填写营业时间',
			'work_end_time.required'		    => '请填写营业时间',
			'store_logo.required'		=> '请上传店铺LOGO',
			'store_info.required'		=> '请上传店铺信息',
			'store_mobile.required'		=> '请填写11位手机号',
            'store_mobile.size'		    => '请填写11位手机号码'
		];
	}
}
